package entity;

import java.util.Date;

public class Boy extends People{

    public Boy(Date birthDay, String sex) {
        super(birthDay, sex);
    }

    void laugh(){
        System.out.println("hh~");
    }

    private void laugh(String word){
        System.out.println(word + "hh~");
    }


    public static void main(String[] args) {
        People boy1 = new Boy(new Date(), "male");
        System.out.println(boy1.getSex());
        System.out.println(boy1.getBirthDay());
        boy1.laugh();
    }

}
